<?php 
include "includes/comunes.php";
$sql="select * from artista where ArtistaId=".$_GET['art'];
$res=cons_sql_up($sql);
$regArt=mysql_fetch_array($res);
?>
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
 <?php include "includes/head.php"?> 
    </head>
    
    <body>
 <?php include "includes/menu.php"?>
       
<div class="space-2"></div>
<?php include "includes/logo.php"?>
<div class="space"></div>

<div class="container">

<div class="hcat">

<span class="catalogo">Resistencia CREA<?php //echo obtener_nombre_artista($_GET['art'])?></span>

</div>
</div><div class="sombra"><img src="img/sombra.png" alt="" /></div>

<div class="container"><ol class="breadcrumb">
  <li><a href="index.php">Home</a></li>
  <li><a href="catalogo.php">Catalogo</a></li>
    <li><a href=""><?php echo obtener_nombre_artista($_GET['art'])?></a></li>
  
</ol>

<div class="row">
<div class="col-md-3">

<?php include "includes/rubros.php"?>

</div>
<div class="col-md-9"><div class="bg3">
<div class="row art">
<div class="col-md-4">
<?php if($regArt['ArtistaFoto']<>""):?>
<img src="<?php echo RUTA_PANEL."/".$regArt['ArtistaFoto']?>" alt="<?php echo utf8_encode($regArt['ArtistaNombre'])?>" />
<?php endif ?>
</div>
<div class="col-md-8">
<span class="nombre"><?php echo obtener_nombre_artista($_GET['art'])?>
<h5>(<?php echo obtener_nombre_rubro($regArt['ArtistaRubro'])?>)</h5></span>
<h3>Bio</h3>
<?php echo utf8_encode($regArt['ArtistaBio'])?>
<br><span class="datos">Datos de Contacto</span>
<address>
<?php if($regArt['ArtistaDireccion']<>""):?> 
  <strong>Dirección</strong><br>
  <?php echo utf8_encode($regArt['ArtistaDireccion'])?><br>
 <?php endif ?> 
  <?php echo utf8_encode($regArt['ArtistaLocalidad'])?>, <?php echo utf8_encode($regArt['ArtistaProvincia'])?> , <?php echo utf8_encode($regArt['ArtistaPais'])?><br>
  <?php if($regArt['ArtistaTel']<>""):?> 
  <abbr title="Phone">
  <strong>Tel:</strong></abbr> 
  <?php echo utf8_encode($regArt['ArtistaTel'])?><br>
  <?php endif ?> 
</address>

<?php if($regArt['ArtistaEmail']<>""):?> 
<address>
  <strong>Mail</strong><br>
  <a href="mailto:#"><?php echo utf8_encode($regArt['ArtistaEmail'])?></a>
</address>
<?php endif ?>
<?php if($regArt['ArtistaArtistaFace']<>""):?> 
<address>
  <strong>Face</strong><br>
  <a href="<?php echo utf8_encode($regArt['ArtistaArtistaFace'])?>"><?php echo utf8_encode($regArt['ArtistaArtistaFace'])?></a>
</address>
<?php endif ?>
<?php if($regArt['ArtistaWeb']<>""):?> 
<address>
  <strong>Web</strong><br>
  <a href="<?php echo utf8_encode($regArt['ArtistaWeb'])?>"><?php echo utf8_encode($regArt['ArtistaWeb'])?></a>
</address>
<?php endif ?>
<button class="btn btn-success btn-small" data-toggle="modal" data-target="#myModal1">
Contactarse</button>
</div>
</div>

<?php include "includes/obras.php"?>

<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">

<form id="formContactoArtista"  method="POST" action="contactoArtista.php">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">Contactar al Artista</h4>
      </div>
      <div class="modal-body">
<div id="result">
  <div class="form-group">
  <input type="hidden" class="form-control" value="<?php echo $regArt['ArtistaNombre'] ?>" name="NombreArtista">
  <?php if($regArt['ArtistaEmail']<>""):?> 
  <input type="hidden" class="form-control" value="<?php echo $regArt['ArtistaEmail'] ?>" name="EmailArtista">
   <?php else: ?>
   <input type="hidden" class="form-control"  value="info@vidrieraresistencia.com.ar" name="EmailArtista">
  <?php endif ?>
    <label for="example">Nombre y Apellido</label>
    <input type="text" class="form-control" name="Nombre"  placeholder="Nombre y Apellido">
  </div>  <div class="form-group">
    <label for="example">Email</label>
    <input type="email" class="form-control" name="Email"  placeholder="Email">
  </div>
  <div class="form-group">
    <label for="example">Telefono</label>
    <input type="text" class="form-control" name="Telefono"  placeholder="Telefono">
  </div>
   <div class="form-group">
    <label for="example">Direccion</label>
    <input type="text" class="form-control" name="Direccion" placeholder="Direccion">
  </div>
  
  <div class="form-group">
    <label for="example">Mensaje</label>
    <textarea class="form-control" name="consulta" placeholder="Ingrese su Consulta"></textarea>
  </div>
  </div>
  </div>
      <div class="modal-footer">
        <!--<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>-->
        <button type="submit" id="Enviar" class="btn btn-success">Enviar</button>
      </div>
    </div>
  </div>
</form>
</div>

</div>
</div>

</div>

</div>



<?php include "includes/footer.php"?>
<?php include "includes/formContacto.php"?>

 <?php include "includes/js.php"?>
    </body>
</html>
